<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<%@include file="../common/jscss.jsp"%>
<script type="text/javascript">
	var talkGrid = null;
	$(function() {
		talkGrid = $("#talk_grid")
				.ligerGrid(
						{
							title : '客户交流',
							columns : [
										{ display: '名称', name: 'memberName',isSort : false,width: 100},
										
										 { display: '类型', name: 'memberType',isSort : false,
		                   	                  render: function(record, rowindex, value, column){
		                   	                	  if(value=="member"){
		                   	                		  return "会员"; 
		                   	                	  }else if(value=="artist"){
		                   	                		  return "艺术家"; 
		                   	                	  }
		                   	                	 
		                   	                  }},
									   { display: '对话内容', name: 'talk',isSort : false,width: 480},
									{
										display : '图片',
										name : 'image',
										isAllowHide : false,
										isSort : false,
										render : function(record, rowindex,
												value, column) {
											if(value!=null && value!=""){
												var html = '<a href="'+value+'">查看</a>&nbsp;';
												return html;
											}
										}
									},
									{
										display : '图片1',
										name : 'image1',
										isAllowHide : false,
										isSort : false,
										render : function(record, rowindex,
												value, column) {
											if(value!=null && value!=""){
											var html = '<a href="'+value+'" target="_blank">查看</a>&nbsp;';
											return html;
											}
										}
									},
									{
										display : '图片2',
										name : 'image2',
										isAllowHide : false,
										isSort : false,
										render : function(record, rowindex,
												value, column) {
											if(value!=null && value!=""){
												var html = '<a href="'+value+'" target="_blank">查看</a>&nbsp;';
												return html;
											}
										}
									},
									{
										display : '图片3',
										name : 'image3',
										isAllowHide : false,
										isSort : false,
										render : function(record, rowindex,
												value, column) {
											if(value!=null && value!=""){
											var html = '<a href="'+value+'" target="_blank">查看</a>&nbsp;';
											return html;
											}
										}
									},

									{
										display : '图片4',
										name : 'image4',
										isAllowHide : false,
										isSort : false,
										render : function(record, rowindex,
												value, column) {
											if(value!=null && value!=""){
											var html = '<a href="'+value+'" target="_blank">查看</a>&nbsp;';
											return html;
											}
										}
									},
									{
										display : '图片5',
										name : 'image5',
										isAllowHide : false,
										isSort : false,
										render : function(record, rowindex,
												value, column) {
											if(value!=null && value!=""){
											var html = '<a href="'+value+'" target="_blank">查看</a>&nbsp;';
											return html;
											}
										}
									},
									{
										display : '图片6',
										name : 'image6',
										isAllowHide : false,
										isSort : false,
										render : function(record, rowindex,
												value, column) {
											if(value!=null && value!=""){
											var html = '<a href="'+value+'" target="_blank">查看</a>&nbsp;';
											return html;
											}
										}
									},
									{
										display : '图片7',
										name : 'image7',
										isAllowHide : false,
										isSort : false,
										render : function(record, rowindex,
												value, column) {
											if(value!=null && value!=""){
											var html = '<a href="'+value+'" target="_blank">查看</a>&nbsp;';
											return html;
											}
										}
									},
									{
										display : '图片8',
										name : 'image8',
										isAllowHide : false,
										isSort : false,
										render : function(record, rowindex,
												value, column) {
											if(value!=null && value!=""){
											var html = '<a href="'+value+'" target="_blank">查看</a>&nbsp;';
											return html;
											}
										}
									},
									{
										display : '图片9',
										name : 'image9',
										isAllowHide : false,
										isSort : false,
										render : function(record, rowindex,
												value, column) {
											if(value!=null && value!=""){
											var html = '<a href="'+value+'" target="_blank">查看</a>&nbsp;';
											return html;
											}
										}
									},
									{
										display : '留言时间',
										name : 'gmtCreated',
										isSort : false,
										render : function(record, rowindex,
												value, column) {
											return (new Date(value.time))
													.format("yyyy年MM月dd日 hh:mm:ss");
										}
									} ],
							pageSize : 30,
							root : 'list',
							record : 'totalRecord',
							url : "/misc/artMade/talkGrid.htm?madeId=${madeId}",
							width : '99%',
							height : '99%'
						});

	});
</script>
<div id="talk_grid" style="margin: 0; padding: 0"></div>
